home *** CD-ROM | disk | FTP | other *** search
/ Suzy B Software 2 / Suzy B Software CD-ROM 2 (1994).iso / extras / programm / gemfsc20 / gemfsc20.lzh / GEMFBIND / VSCLIP.S < prev    next >
Text File  |  1993-03-16  |  945b  |  36 lines

  1. ;*========================================================================
  2. ;* VDIFAST Public Domain VDI bindings.
  3. ;*========================================================================
  4.  
  5.  
  6. ;*------------------------------------------------------------------------
  7. ;* Set clipping rectangle.
  8. ;*------------------------------------------------------------------------
  9.  
  10.           globl     _vs_clip
  11. _vs_clip:
  12. ;    .cargs    #8,handle.w,clipflag.w,pxy.l
  13.  
  14. handle      =         8
  15. clipflag  =         10
  16. pxy       =         12
  17.  
  18.           link        a6,#0
  19.  
  20. ;          VContrl    #129,,#2,#1
  21.           move.w    handle(a6),-(sp)    ; contrl[6]
  22.           clr.l     -(sp)                ; contrl[5,4]
  23.           move.w    #1,-(sp)            ; contrl[3]
  24.           subq.l    #2,sp                ; contrl[2]
  25.           move.w    #2,-(sp)            ; contrl[1]
  26.           move.w    #129,-(sp)            ; contrl[0]
  27.  
  28.           subq.l    #8,sp                ;* -> ptsout, ptsin
  29.           move.l    pxy(a6),-(sp)        ;* -> ptsin
  30.           pea        clipflag(a6)        ;* -> intin
  31.           pea        16(sp)                ;* -> contrl
  32.  
  33.           jmp        vdicall
  34.  
  35.           end
  36.